import Service from './$axios'
import { appName } from '../config';

// 2.0领料申请列表查看
export const acceptRequestList = (data) => {
    return Service({
        url: `${appName}/partManage/acceptRequestList`,
        method: 'post',
        data
    })
}
// 2.1领料申请列表详情
export const acceptRequestListDetail = (data) => {
    return Service({
        url: `${appName}/partManage/acceptRequestListDetail?id=${data}`,
        method: 'get',
    })
}
// 2.2 加急提交
export const rushSubmit = (data) => {
    return Service({
        url: `${appName}/partManage/rushSubmit?${data}`,
        method: 'get',
    })
}
// 2.3 领料单发布查询
export const acceptPublishList = (data) => {
    return Service({
        // url: `${appName}/partManage/acceptPublishList?${data}`,
        // method: 'get',
        url: `${appName}/partManage/acceptPublishList`,
        method: 'post',
        data
    })
}
// 2.4 领料单发布提交
export const acceptPublishListSubmit = (data) => {
    return Service({
        url: `${appName}/partManage/acceptPublishListSubmit`,
        method: 'post',
        data
    })
}
// 2.6机位
export const seatList = () => {
    return Service({
        url: `${appName}/partManage/seatList`,
        method: 'get'
    })
}
// 2.3.1班组列表
export const groupList = () => {
    return Service({
        url: `${appName}/partManage/groupList`,
        method: 'get'
    })
}
// 1.9 最大值  --用来判断是否要刷新
export const maxdid = (data) => {
    return Service({
        url: `${appName}/partManage/maxdid?${data}`,
        method: 'get'
    })
}